package com.hongkang.springtrains.repository;

import com.hongkang.springtrains.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

public interface UserRepository  extends JpaRepository<User,Long> {

    @Transactional
    User findByName(String name);



}
